package com.studio701.carguard.service.imp;

import com.studio701.carguard.pojo.HelpQuestion;
import com.studio701.carguard.mapper.HelpQuestionMapper;
import com.studio701.carguard.service.IHelpQuestionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xjc
 * @since 2022-03-16
 */
@Service
public class HelpQuestionServiceImpl extends ServiceImpl<HelpQuestionMapper, HelpQuestion> implements IHelpQuestionService {

    @Autowired
    private HelpQuestionMapper helpQuestionMapper;


    @Override
    public List<HelpQuestion> getQuestionWithAnswer() {
        return helpQuestionMapper.getQuestionWithAnswer();
    }

    @Override
    public List<HelpQuestion> getQuestionsWithAnswerByQTheme(String qTheme) {
        return helpQuestionMapper.getQuestionsWithAnswerByQTheme(qTheme);
    }


}
